<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="icon" href="/favicon.ico"/>
    <title>03-原始 HTML(v-html命令)演示</title>
</head>
<body>
<div id="app">
    <h1>HTML代码字符串展示：{{ message }}</h1>
    <h1 >HTML代码展示：<span v-html="message"></span></h1>
</div>
<!--<script src="https://unpkg.com/vue@next"></script>-->
<script src="../js/vue.global.js" />
<script>Vue.config.productionTip = false</script>
<script>
    const app={
        data(){
            return {
                message:"<span style=\"color: red\">This should be red.</span>",
            }
        }
    }
    Vue.createApp(app).mount('#app');
</script>
</body>
</html>